home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 13156 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: mail2news.demon.co.uk!genesis.demon.co.uk
  2. From: Lawrence Kirby <fred@genesis.demon.co.uk>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Pointer Problems
  5. Date: Thu, 04 Apr 96 21:59:35 GMT
  6. Organization: none
  7. Message-ID: <828655175snz@genesis.demon.co.uk>
  8. References: <3163BAEB.41C67EA6@cs.cf.ac.uk>
  9. Reply-To: fred@genesis.demon.co.uk
  10. X-NNTP-Posting-Host: genesis.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.27
  12. X-Mail2News-Path: genesis.demon.co.uk
  13.  
  14. In article <3163BAEB.41C67EA6@cs.cf.ac.uk> O.Huw@cs.cf.ac.uk "Owain" writes:
  15.  
  16. >I'm getting this error everytime I try to access a structure element in
  17. >a Linked List. I'm using e.g. listpointer = listpointer -> link 
  18. >but it doesn't seem to like it! Any ideas?
  19.  
  20. Post the code. Without seeing what you are actually doing and the
  21. declarations involved there's not much to say.
  22.  
  23. >warning: assignment type mismatch:
  24. >        pointer to struct {int dataitem, pointer to struct listelement
  25. >{..} link} "=" pointer to struct listelement {}
  26.  
  27. So the type of the thing on the left of the = is different to that on the
  28. right. Show code and we might be able to see what those types actually
  29. are.
  30.  
  31. -- 
  32. -----------------------------------------
  33. Lawrence Kirby | fred@genesis.demon.co.uk
  34. Wilts, England | 70734.126@compuserve.com
  35. -----------------------------------------
  36.